﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Threading;

namespace Sistema_financiero.Control
{
    public static class Convertir_coma_decimal_a_punto
    {
        public static void Convertir_coma_a_punto()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-ES");
            CultureInfo currentCulture = System.Threading.Thread.CurrentThread.CurrentCulture;
            currentCulture.NumberFormat.NumberDecimalSeparator = ".";
            currentCulture.NumberFormat.NumberGroupSeparator = ",";
        }

        public static void Convertir_punto_a_coma()
        {
            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-ES");
            CultureInfo currentCulture = System.Threading.Thread.CurrentThread.CurrentCulture;
            currentCulture.NumberFormat.NumberDecimalSeparator = ",";
            currentCulture.NumberFormat.NumberGroupSeparator = ".";
        }
    }
}
